#include "module.h"


static EEPROM_Interface_t eeprom_at24c02;

static uint8_t eeprom_read(uint32_t addr, uint8_t *data, uint16_t len)
{
    return eeprom_at24c02.read(addr, data, len);
}

static uint8_t eeprom_write(uint32_t addr, uint8_t *data, uint16_t len)
{
    return eeprom_at24c02.write(addr, data, len);
}

void eeprom_init(void)
{
    // 实例化
    eeprom_at24c02.read = bsp_at24cxx_read_bytes;
    eeprom_at24c02.write = bsp_at24cxx_write_bytes;

}



